import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {LoginComponent} from "./components/login/login.component";
import {P401Component} from "./components/p401/p401.component";
import {P403Component} from "./components/p403/p403.component";
import {WelcomeComponent} from "./components/welcome/welcome.component";

const routes: Routes = [


  { path: 'incoming', loadChildren: () => import('./pages/incoming/incoming.module').then(m => m.IncomingModule) },


  { path: 'bake', loadChildren: () => import('./pages/bake/bake.module').then(m => m.BakeModule) },


  { path: 'encapsulation', loadChildren: () => import('./pages/encapsulation/encapsulation.module').then(m => m.EncapsulationModule) },


  { path: 'admin', loadChildren: () => import('./pages/admin/admin.module').then(m => m.AdminModule) },


  { path: 'cpcrk', loadChildren: () => import('./pages/cpcrk/cpcrk.module').then(m => m.CpcrkModule) },
  {path:'login',component:LoginComponent},
  {path:'p401',component:P401Component},
  {path:'p403',component:P403Component},
  {path:'welcome',component:WelcomeComponent},


  { path: 'blockchain', loadChildren: () => import('./pages/blockchain/blockchain.module').then(m => m.BlockchainModule) }

];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
